#include"progressbar.h"




void download()
{
    int total=1000;
    int curr=0;
    
    while(curr<=total)
    {
        int num=rand()%200000+10000;
        progressbar2(curr*100/total);
        curr+=10;
        usleep(num);
    }
}


int main()
{
    srand(time(NULL));
    download();
    printf("\n");
    /*int i=0;
    for(i=0;i<=10;i++)
    {
        printf("%-2d\r",10-i);
        fflush(stdout);
        sleep(1);
    }
    printf("0\n");
    return 0;*/
    return 0;
}
